package com.mike.uaa.jackson;

import com.fasterxml.jackson.databind.module.SimpleModule;
import com.mike.uaa.core.DefaultAuthenticationToken;

/**
 * @author z zhang
 */
public class AuthenticationTokenModule extends SimpleModule {
    public AuthenticationTokenModule() {
        addSerializer(DefaultAuthenticationToken.class, new DefaultAuthTokenSerializer());
        addDeserializer(DefaultAuthenticationToken.class, new DefaultAuthTokenDeserializer());
    }
}
